Computer and Modernization ›› 2011, Vol. 1 ›› Issue (1): 117-4.doi: 10.3969/j.issn.1006-2475.2011.01.034

• 图像处理 • Previous Articles     Next Articles

Algorithm of Polygon Scan Conversion Based on Vertex of Polygon

TANG Yong-yong1, FENG Jian1, DU Zhen-hua1, HU Zhi-yong2   

  1. 1.Logistical Engineering University, Chongqing 401311, China; 2.73808 Units of PLA, Ningbo 315803, China
  • Received:2010-09-19 Revised:1900-01-01 Online:2011-01-20 Published:2011-01-20

Abstract:

Based on the characteristic of new edge tables existing only in the scan line through the vertex, a new polygon scanning conversion algorithm is proposed in which scan range is divided and active edge table is updated by the y coordinate of vertex of polygon. The algorithm avoids the redundant identification operation to each scan line in the sorted edge table method. It is proposed the general algorithm of determined the serial number for front and back the apex and the general algorithm of creating a new edge table and the new edge table associated with of the y coordinates of apex. The steps of the algorithm are compared in a table. The result shows that the new algorithm has many advantages such as simple structure, easy to read, stable operation and fast implementation, etc.

Key words: polygon scan conversion, new edge table, modulus, standard template library